<template>
  <div id="box">
    <el-container>
    <el-header>
        <el-menu router default-active="/" class="el-menu-demo" mode="horizontal" @select="handleSelect">
        <el-menu-item  index="/">首页</el-menu-item>
        <el-menu-item index="/goods">分类</el-menu-item>
        <el-menu-item index="/shopCar" >购物车</el-menu-item>
        <el-menu-item index="/userInfo">我的</el-menu-item>
        </el-menu>
    </el-header>
    <el-main style="750px"><router-view/></el-main>
    <el-footer>Footer</el-footer>
    </el-container>
  </div>
</template>

<script>

export default {

}
</script>

<style scoped>
.el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    padding: 0;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  .el-main,.el-footer{
    margin: 0 auto;
    width: 80%;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }

</style>